{% extends "resource/layout.html" %}
{% block title %}
    Home
{% endblock %}
{% block content %}
    <h2>Azure Subscriptions</h2>
    
    {% if subscription_list %}
        <table class="subscription_list">
            <thead>
            <tr>
                <th>auth</th>
                <th>name</th>
                <th>count</th>
            </tr>
            </thead>
            <tbody>
            {% for sub in subscription_list %}
                <tr>
                    <td>{{ sub.auth }}</td>
                    <td>{{ sub.name }}</td>
                    <td>{{ sub.count }}</td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    {% else %}
        <p>No auth in the system.</p>
    {% endif %}
{% endblock %}